<?php
require_once '../XJConf/XJConfLoader.php';
XJConfLoader::load('DefinitionParser',
                   'XmlParser'
);
error_reporting(E_ALL | E_STRICT);

require 'AnotherDog.php';

/**
 * @author  Frank Kleine <mikey@xjconf.net>
 */
class Test__setPublicProperties
{

    public static function main()
    {

        $tagParser = new DefinitionParser();
        $defs = $tagParser->parse(getcwd() . '/xml/defines-__setPublicProperties.xml');

        $conf = new XmlParser();
        $conf->setTagDefinitions($defs);

        try {
            $conf->parse(getcwd() . '/xml/test-__set.xml');
        } catch (Exception $e) {
            throw $e;
            exit();
        }

        $dog = $conf->getConfigValue('dog');
        var_dump($dog);
    }
}
Test__setPublicProperties::main();
?>